package com.effectiv.gooruda.domain;

import javax.validation.constraints.NotNull;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.DBRef;

import com.effectiv.gooruda.domain.Application;

@ToString
public class CloudQueue extends PersistentObject{

	@JsonIgnore
	@Indexed(unique=true)
	@NotNull
	@Getter @Setter
	private String cname;
	
	@NotNull
	@Getter @Setter
	private String name;
	
	@Getter @Setter
	private long size;
	
	@Getter @Setter
	private long total;
	
	@JsonIgnore
	@Getter @Setter
	@DBRef
	private Application application;
	
	@Getter @Setter
	private String pushMode;
	
	@Getter @Setter
	private String retry;
	
	@Getter @Setter
	private String retryDelay;
	
	@Getter @Setter
	private String[] subscribers;
	
}
